#include <iostream>
#include "Login.h"

using namespace std;

int main(int argc, char * argv[])
{
    string loginFile = "cashier_data.txt";
    string transactinFile = "transactions_details.txt";
    if (1 < argc )
    {
        loginFile = argv[1];
    }
    if (2 < argc )
    {
        transactinFile = argv[2];
    }
    cout <<"POS system" <<  endl;
    cout <<"Input login file " << loginFile << " transaction file "<<  transactinFile <<  endl;

    try
    {
        LoginSystem  login(loginFile);
        login.LoadLoginFile ();
        /*bool isLoginSuccess = login.LoginUser();*/

    }
    catch( exception& e)
    {
        cout << " A standard exception was caught, with message: "  << e.what() << endl;
        return 1;
    }
    return 0;
}
